package com.liujg.future.model.resp;

import com.liujg.future.model.entity.Address;
import lombok.Data;

import java.util.List;

@Data
public class OrderPreVO {

    private List<Address> userAddresses;

    private List<OrderGoods> goods;

    private Summary summary;

    @Data
    public static class Summary {

        /**
         * 商品件数
         */
        private Integer goodsCount=0;

        /**
         * 价格总计 = 商品总价
         */
        private Integer totalPrice=0;

        /**
         * 应付总计 = 商品总价 + 邮费 - 折扣
         */
        private Integer totalPayPrice=0;

        /**
         * 邮费
         */
        private Integer postFee=3;

        /**
         * 折扣总计
         */
        private Integer discountPrice=0;

    }
}
